﻿package Cain.bgm
{
	import flash.media.Sound;
	import flash.media.SoundChannel;
	import flash.utils.getDefinitionByName;
	
	/**
	 * ...
	 * @author Cain
	 */
	public class LbSound  
	{
		private var sound:Sound;
		private var spundcla:SoundChannel;
		private var slass:Class;
		public function LbSound(_class:String) 
		{
			slass = getDefinitionByName(_class) as Class;
		}
		public function play():void 
		{
			sound = slass as Sound;
			spundcla = sound.play();
		}
	}
	
}